// Released in the Public Domain. http://creativecommons.org/licenses/publicdomain/
package org.xi8ix.async.spi;

import org.xi8ix.async.Sender;

import java.util.UUID;

/**
 * @author Iain Shigeoka
 */
interface SendFutureSender extends Sender {
    /**
     * Allows cancelling messages that have been queued for sending via the send() method
     * to be cancelled using a UUID. Specifically supports the use of the SendFuture concept
     * of message IDs.
     *
     * @param id the ID of the message to cancel
     */
    void cancel(UUID id);
}
